import React from 'react';
import ReactDOM from 'react-dom';
import ComA from './02.组合组件';
import ReadOnlyPropsCom from './03.props的只读性';
import App from './App';
import Clock from './Clock';
import reportWebVitals from './reportWebVitals';
// import "./04.类"
import ClockG from './05.时钟改造';
import ComC from './06.正确使用状态';
import King from './07.事件';
// 如果展示react组件，首字母必须大写
// 如果展示react元素，首字母必须是小写
ReactDOM.render(
  <React.StrictMode>
    {/* <App /> */}
    {/* <Clock timer={new Date().toLocaleTimeString()}/> */}
    {/* <ComA/>
    <ReadOnlyPropsCom name="搬山道人"/>
    <ClockG/> */}
    {/* <ComC/> */}
    <King/>
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
